package com.cn.boot.spring.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/phone")
public class ProductController {

    @PreAuthorize("hasAuthority('wx:product:read')")
    @RequestMapping("/getPhones")
    public  String getPhones(){
        return "getPhones";
    }

}
